/*
 * =====================================================================================
 *
 *       Filename:  main.cc
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  01/12/2022 09:25:35 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */
#include "Component.h"
#include "DecoratorA.h"
#include "DecoratorB.h"

int main() {
    IComponent* component = new Component();
    IComponent* decoratorA = new DecoratorA(component);
    decoratorA->operation();
    //
    IComponent* decoratorB = new DecoratorB(decoratorA);
    decoratorB->operation();
}
